/* 
 * Copyright (c) 2012 JSquirrelEngine
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in 
 * the Software without restriction, including without limitation the rights to use,
 * copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
 * Software, and to permit persons to whom the Software is furnished to do so, subject
 * to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
 * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * 
 */

package org.jsquirrel.rendering;

import org.jsquirrel.geometry.Polygon;
import org.jsquirrel.math.F2Vector;

/**
 * 
 * @author Juan David Adarve Bermudez
 *
 */
public abstract class Graphics {
	
	//*********************************************************************************************
	// ABSTRACT METHODS
	//*********************************************************************************************

	//*******************************************
	// DRAWING PROPERTIES
	//*******************************************
	
	public abstract void setColor3f(float red, float green, float blue);
	public abstract void setColor4f(float red, float green, float blue, float alpha);
	
	public abstract void setDepth(float depth);
	
	public abstract void setLineWidth(float width);
	public abstract void setPointSize(float size);
	
	//*******************************************
	// DRAWING METHODS
	//*******************************************
	
	public abstract void drawPolygon(Polygon p);
	public abstract void drawPolygon(Polygon p, float[] textureCoords);
	
	public abstract void drawRectangle(float x0, float y0, float width, float height);
	public abstract void drawRectangle(final F2Vector bottomLeft, final F2Vector upperRight);
	
	public abstract void drawPoint(float x, float y);
	public abstract void drawPoint(final F2Vector v);
	
	public abstract void drawLine(float x1, float y1, float x2, float y2);
	public abstract void drawLine(final F2Vector v1, final F2Vector v2);
	
	public abstract void fillPolygon(Polygon p);
	
	//*******************************************
	// TEXTURING METHODS
	//*******************************************
	
	public abstract TextureLoader getTextureLoader();
	
	public abstract void setActiveTexture(int textureID);

}
